package com.nightsoul.servlet3.test.chapter2.web;

import java.util.Set;

import javax.servlet.ServletContainerInitializer;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.HandlesTypes;

@HandlesTypes({InJarServlet.class})
public class MyServletContainerInitializer implements ServletContainerInitializer {

	@Override
	public void onStartup(Set<Class<?>> c, ServletContext ctx)	throws ServletException {
		System.out.println("MyServletContainerInitializer");
		ctx.addListener(DynamicServletContextListener.class);
	}

}
